<template>
  <div class="page loading4">
    <div class="loading">loading...</div>
  </div>
</template>
<script setup>
import {} from "vue";
</script>
<style lang="scss">
.loading4 {
  .loading {
    width: 160px;
    height: 160px;
    margin: 50px auto;
    position: relative;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 160px;
    box-sizing: border-box;
  }
  .loading::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: skyblue;
    border: 1px solid #eee;
    left: -31px;
    top: -31px;
    z-index: -1;
    box-sizing: border-box;
    clip-path: polygon(50% 0, 100% 0, 100% 50%, 50% 50%);
    animation-name: loading4-rotate;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
  .loading::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: #fafafa;
    border: 1px solid #eee;
    left: -31px;
    top: -31px;
    z-index: -2;
    box-sizing: border-box;
  }
  @keyframes loading4-rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
}
</style>